home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / telecomm / fido / requestor.lha / requestor / install / Workbench_2.0 < prev    next >
Encoding:
Text File  |  1995-02-04  |  5.2 KB  |  228 lines

  1.  
  2. ; Install script for Requestor (Workbench 2.1 or higher)
  3.  
  4. (set old_level @user-level)
  5.  
  6. (set requestordir "/")
  7. (set catalogdir "/Catalogs/")
  8.  
  9. ;=============================================================================
  10. ; English strings
  11.  
  12. (set default_lang 4)
  13.  
  14. (set #bad-kick
  15. (cat "You must be using Kickstart 2.04 to install using this script!"
  16. ))
  17.  
  18. (set #where-requestor
  19. (cat "Where would you like to install Requestor ?\n"
  20.      "(A drawer will be created)"
  21. ))
  22.  
  23. (set #add-rexxmast-startup
  24. (cat "\nAdd Rexxmast startup to \"S:user-startup\" "
  25.      "so that your system will be properly startup rexxmast for Requestor ? "
  26.      "Select Help if you want know why."
  27. ))
  28. (set #add-rexxmast-startup-help
  29. (cat "\nRequestor will need rexxmast to create a communication channel "
  30.      "between Requestor and Trapdoor, Requestor and Spot"
  31. ))
  32.  
  33. (set #which-language
  34. (cat "\nWhich languages should be installed?"
  35. ))
  36. (set #which-language-help
  37. (cat "\nThe Amiga can be operated in many different"
  38.      " languages. If you want Requestor to use the same"
  39.      " language as the Amiga Workbench"
  40.      " then a catalog file must be copied to your"
  41.      " harddisk for each language supported.\n\n"
  42.      "To reduce the amount of space consumed by the"
  43.      " language files, you can select to have only the"
  44.      " files of specific languages copied.\n\n"
  45.      "Simply check the boxes of the languages you wish"
  46.      " to have available on your system.\n\n"
  47.      @askoptions-help
  48. ))
  49.  
  50. (set #install-msg
  51. (cat "\n\nRequestor installation script.\n"
  52.      "This script installs Requestor on your Amiga.\n\n"
  53.      "Read the README file for more information\n"
  54.      "on the distribution of Requestor.\n\n"
  55.      "Requestor © 1995 Stephan Kortleven\n"
  56.      "All rights reserved."
  57. ))
  58.  
  59. (set #requestor-wbstartup "\nInstall Requestor in WbStartup too ?\nChoose Help to know why !")
  60. (set #requestor-wbstartup-help
  61. (cat "\nThis will install Requestor in WbStartup for Iconify or timer uses. "
  62.      "Requestor will the first time it's started create a directory called data. "
  63.      "All other Requestor versions will use this created directory. So, it would "
  64.      "be smart to start first the version i just have installed otherwise there "
  65.      "will be a data directory created in the WbStartup directory that you "
  66.      "dont want have at that place !"
  67. ))
  68.  
  69. (set #notfound
  70. (cat "\nSys:System/Rexxmast not found !\n\n"
  71.      "Requestor will need Rexxmast to work !\n"
  72.      "I hope you have put it somewhere else. ;-)\n"
  73.      "It has to be started before running Requestor !\n"
  74. ))
  75.  
  76. ;=============================================================================
  77. ; make sure we are running under a 2.04 ROM
  78.  
  79. (if (< (/ (getversion) 65536) 37)
  80. (
  81.     (abort #bad-kick)
  82. ))
  83.  
  84. ;=============================================================================
  85.  
  86. (message #install-msg)
  87.  
  88. (welcome)
  89.  
  90. (set requestordestdir
  91.    (tackon
  92.       (askdir
  93.          (prompt #where-requestor)
  94.          (help @askdir-help)
  95.          (default @default-dest)
  96.       )
  97.       "Requestor"
  98.    )
  99. )
  100.  
  101. (set @default-dest requestordestdir)
  102.  
  103. (makedir requestordestdir (infos))
  104. (makedir (tackon requestordestdir "Catalogs"))
  105. (makedir (tackon requestordestdir "Data"))
  106.  
  107. (copyfiles
  108.    (source (tackon requestordir "Requestor"))
  109.    (dest requestordestdir)
  110.    (infos)
  111. )
  112. (copyfiles
  113.    (source (tackon requestordir "Requestor.Junior"))
  114.    (dest requestordestdir)
  115.    (infos)
  116. )
  117.  
  118.  
  119. (copyfiles
  120.    (source (tackon requestordir "Requestor.Guide"))
  121.    (dest requestordestdir)
  122.    (infos)
  123. )
  124. (if (< (/ (getversion) 65536) 39)
  125. (
  126.    (tooltype
  127.       (dest (tackon Requestordestdir "Requestor.Guide"))
  128.       (setdefaulttool "SYS:Utilities/AmigaGuide")
  129.    )
  130. ))
  131.  
  132. (copyfiles
  133.    (source (tackon requestordir "Requestor.Doc"))
  134.    (dest requestordestdir)
  135.    (infos)
  136. )
  137. (if (< (/ (getversion) 65536) 39)
  138. (
  139.    (tooltype
  140.       (dest (tackon Requestordestdir "Requestor.Doc"))
  141.       (setdefaulttool "SYS:Utilities/More")
  142.    )
  143. ))
  144.  
  145.  
  146. (copyfiles
  147.    (source (tackon requestordir "Requestor.Readme"))
  148.    (dest requestordestdir)
  149.    (infos)
  150. )
  151. (if (< (/ (getversion) 65536) 39)
  152. (
  153.    (tooltype
  154.       (dest (tackon requestordestdir "Requestor.Readme"))
  155.       (setdefaulttool "SYS:Utilities/More")
  156.    )
  157. ))
  158.  
  159.  
  160. (copyfiles
  161.    (source (tackon requestordir "World"))
  162.    (dest requestordestdir)
  163.    (infos)
  164. )
  165. (if (< (/ (getversion) 65536) 39)
  166. (
  167.    (tooltype
  168.       (dest (tackon requestordestdir "World"))
  169.       (setdefaulttool "SYS:Utilities/More")
  170.    )
  171. ))
  172.  
  173. (copyfiles
  174.    (source (tackon requestordir "Print.World"))
  175.    (dest requestordestdir)
  176.    (infos)
  177. )
  178.  
  179. (copyfiles
  180.    (source (tackon requestordir "README"))
  181.    (dest requestordestdir)
  182.    (infos)
  183. )
  184. (if (< (/ (getversion) 65536) 39)
  185. (
  186.    (tooltype
  187.       (dest (tackon requestordestdir "README"))
  188.       (setdefaulttool "SYS:Utilities/More")
  189.    )
  190. ))
  191.  
  192.  
  193. (if
  194.  (askbool
  195.   (prompt #requestor-wbstartup)
  196.   (help #requestor-wbstartup-help)
  197.   (default 0)
  198.  )
  199.  (
  200.    (copyfiles
  201.      (source (tackon requestordir "Requestor"))
  202.      (dest "Sys:WbStartup")
  203.      (infos)
  204.    )
  205.  )
  206. )
  207.  
  208.  
  209. (if
  210.   (exists "Sys:System/RexxMast" (noreq))
  211.   (if
  212.     (askbool
  213.       (prompt #add-rexxmast-startup)
  214.       (help #add-rexxmast-startup-help)
  215.       (default 1)
  216.     )
  217.     (startup "Requestor"
  218.       (prompt #add-rexxmast-startup)
  219.       (help #add-rexxmast-startup-help)
  220.       (command
  221.        "Sys:System/RexxMast >nil:\n"
  222.       )
  223.     )
  224.   )
  225.   (message #notfound)
  226. )
  227.  
  228.